package com.sky.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sky.dto.GoodsSalesDTO;
import com.sky.dto.OrdersPageQueryDTO;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
* @author 86158
* @description 针对表【orders(订单表)】的数据库操作Mapper
* @createDate 2025-08-25 21:22:35
* @Entity com.sky.pojo.Orders
*/
@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {

    List<Orders> countStatus(Integer pendingPayment, LocalDateTime localDateTime);


    Double getturnoverStatistics(Map map);

    Integer getOrderCount(Map map);

    List<GoodsSalesDTO> getSalesTop10(Map map);

    Integer getOrdersCount(Map  map);

    IPage<Orders> listOredsers(IPage<Orders> page1, OrdersPageQueryDTO ordersPageQueryDTO);


}




